<style>
* { box-sizing: border-box; }

.contact-us {
	background-color: #555;
    text-align: center;
    padding: 4px 0px 4px 0px;
    /* border-top: 1px solid #b0afaf; */
    /* margin: 0px 5px; */
	font-size: 18px;
    font-weight: bold;
    color: #b0afaf;
    /* text-transform: uppercase; */
	margin-top: 54px;
}

.contact-us-grid {
	width: 100%;
    display: grid;
    flex-wrap: wrap;
	margin-top: 4px;
    gap: 5px;
    grid-template-columns: repeat(2, 1fr);
    padding: 0px 5px;
}

.contact-us-grid > div:last-child:nth-child(4n + 1) {
    grid-column: 1 / -1;
}

.contact-us-holder {
    width: 100%;
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 5px;
    background-color: #474748;
    /* margin: 4px 4px 4px 4px; */
	padding: 0px 8px;
}

.contact-us-holder a {
    width: 100%;
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 5px;
    background-color: #474748;
    /* margin: 4px 4px 4px 4px; */
	padding: 0px 8px;
}

.contact-us-holder a:hover {
	text-decoration: none;
	background-color: #3f3c3c;
}

.contact-us-link {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    width: 100%;
    text-align: center;
    position: relative;
}

.contact-us-button {
	width: 98%;
    min-width: auto;
	text-align: center;
	padding: 8px 8px 7px 8px;
    text-transform: uppercase;
    cursor: pointer;
    color: #ebf3ff;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    border-radius: 100px;
    border: none;
    background-color: #1f74ff;
    display: inline-block;
    z-index: 860;;
    letter-spacing: .4px;
    transform: scale(1);
    position: relative;
}

.contact-us-wr {
	width: 100%;
}

.contact-icon {
	color: #b0afaf;
	font-size: 48px;
	padding: 0px 0px 15px 0px;
}
}
@media (max-width: 350px) {
  /* For tablets and smaller screens, make it 2 columns and 2 rows */
  .contact-us-grid {
    grid-template-columns: repeat(1, 1fr); /* 2 columns */
  }
}

@media (min-width: 351px) and (max-width: 768px) {
  /* For tablets and smaller screens, make it 2 columns and 2 rows */
  .contact-us-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* For medium screens (tablets), adjust to 2 columns */
    .contact-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 1 item in last row */
    .contact-us-grid > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1025px) {
  /* For larger screens (desktops), adjust to 4 columns */
    .contact-us-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 1 item in last row → full width */
    .contact-us-grid > div:last-child:nth-child(4n + 1) {
        grid-column: 2 / -2;
    }

    /* 2 items in last row → each spans 2 columns */
    .contact-us-grid > div:nth-last-child(2):nth-child(4n + 1),
    .contact-us-grid > div:last-child:nth-child(4n + 2) {
        grid-column: span 2;
    }
}
</style>

